import Layout from '@/layouts/index.vue'

export default [
    {
        path: '/users',
        component: Layout,
        meta: { title: '用户管理', icon: 'el-icon-user-solid' },
        redirect: '/users/list',
        children: [
            {
                path: 'list',
                component: () => import('views/users/list.vue'),
                meta: { title: '用户列表', icon: 'el-icon-document' }
            },
            {
                path: 'role',
                component: () => import('views/users/Role/index.vue'),
                meta: { title: '用户角色', icon: 'el-icon-document' }
            },
            {
                path: 'create',
                hidden: true,
                component: () => import('views/users/create.vue'),
                meta: { title: '创建新用户', activeMenu: '/users/list' }
            },
            {
                path: 'edit/:id(\\d+)',
                name: 'userEdit',
                component: () => import('views/users/edit.vue'),
                hidden: true,
                meta: { title: '编辑用户信息', activeMenu: '/user/list' }
            }
        ]
    },
]